package com.etc.datedemo;

import java.util.Date;

/**
 * @author: knowno
 * @create: 2024-09-09 15:40
 * @Version 1.0
 * java.util.Date => 既可以表示日期，也可以包含时间
 **/
public class TestDate {
    public static void main(String[] args) {
        Date date = new Date();
        //Mon Sep 09 15:41:36 CST 2024
        System.out.println(date);

        System.out.println(date.getTime());
        System.out.println(date.toLocaleString());

    }
}
